﻿using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class NewBehaviourScript : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        var type = typeof(TypeReTest);

        var p = Activator.CreateInstance(typeof(TypeReTest));

        var method = type.GetMethod("Send");
        method.Invoke(p, new object[] { "1" });
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}


public class TypeReTest
{
    public void Send(string a)
    {
        Debug.Log("测试");
    }
}